﻿/*
 * Vytvořeno aplikací SharpDevelop.
 * Uživatel: lebeda
 * Datum: 30.5.2012
 * Čas: 7:54
 * 
 * Tento template můžete změnit pomocí Nástroje | Možnosti | Psaní kódu | Upravit standardní hlavičky souborů.
 */
using System;
using CommandLine;
using CommandLine.Text;
using System.Collections.Generic;


namespace updatedb_rss
{
    class CmdOptions {
        [Option("o", "optimize", DefaultValue = false,
                HelpText = "Optimize index before commit changes.")]
        public bool Optimize { get; set; }
        
        [Option("d", "delete", Required = false, HelpText = "Path to delete from index.")]
        public string pathToDelete { get; set; }                
        
        [Option("u", "url", Required = true, HelpText = "Path to file with url.")]
        public string pathToUrl { get; set; }          
        
        [HelpOption]
        public string GetUsage() {
            var help = new HelpText(new HeadingInfo("updatedb", "0.1"));
            help.Copyright = new CopyrightInfo("Martin Lebeda", 2013, DateTime.Now.Year);
            help.AddPreOptionsLine("Update index for locate utilities. Powered on lucene.NET.");
            help.AddOptions(this);
            return help;
        }
    }
}
